package com.pig.goods.service;


import com.pig.pojo.commgoods.Comment;
import com.pig.pojo.commgoods.PageObject;

public interface CommentService {

    /**
     * 查询所有的
     * @param goodsId
     * @param pageCurrent
     * @return
     */
    PageObject<Comment> findCommentByGoodsId(Integer goodsId, Integer pageCurrent);

    /**
     * 当前商品执行添加评论操作
     * @param comment
     * @return
     */
    int insertComment(Comment comment);
}
